package cn.kgm.user.dto.entity;

import cn.kgm.core.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * # 技术改变自己 #
 * 用户登录设备
 * @author kappi
 * @date   2024-04-08 13:28:48
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "user_equipment")
@ApiModel(value = "UserEquipment", description = "用户登录设备")
public class UserEquipment extends Entity<Long>{

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称")
    @TableField(value = "name", condition = LIKE)
    private String name;

    /**
     * 设备型号
     */
    @ApiModelProperty(value = "设备型号")
    @TableField(value = "model", condition = LIKE)
    private String model;

    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备ID")
    @TableField(value = "eqpt_id", condition = LIKE)
    private String eqptId;
}
